package cn.tedu.charging.device.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("charging_gun_info")
public class GunPO implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 编号

    @TableField("gun_number")
    private String gunNumber; // 枪编号

    @TableField("gun_name")
    private String gunName; // 枪名称

    @TableField("power")
    private Double power; // 额定功率 KW

    @TableField("electricity")
    private Double electricity; // 额定电流 A

    @TableField("voltage_upper_limits")
    private Double voltageUpperLimits; // 电压上限 V

    @TableField("voltage_lower_limits")
    private Double voltageLowerLimits; // 电压下限 V

    @TableField("gun_type")
    private Integer gunType; // 枪类型

    @TableField("pile_id")
    private Integer pileId; // 充电桩ID

    @TableField("gun_status")
    private Integer gunStatus; // 枪状态(1空闲 2使用中 3故障 4离线)

    @TableField("create_time")
    private LocalDateTime createTime; // 创建时间

    @TableField("update_time")
    private LocalDateTime updateTime; // 更新时间

    @TableField("deleted")
    private Boolean deleted; // 是否删除
}
